package com.bluesky.controller;

import com.bluesky.comm.Result;
import com.bluesky.comm.ResultUtils;
import com.bluesky.dto.lesson023.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/lesson023")
@Slf4j
public class Lesson023Controller {

    /**
     * 脱敏测试
     * @return
     */
    @GetMapping("/getUser")
    public Result<User> getUser() {
        User user = new User();
        user.setId("001");
        user.setName("路人");
        user.setPhone("18612345678");
        user.setEmail("likun_557@163.com");
        user.setIdCard("420123432112121332");
        user.setPassword("123456");
        user.setAddress("上海市闵行区漕河泾开发区");
        user.setBankCard("6226090211114567");

        return ResultUtils.success(user);
    }
}
